{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Train data size of NxTxHxW"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(8000, 10, 64, 64)\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAP8AAAD8CAYAAAC4nHJkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFJZJREFUeJzt3Xt0VdWdB/DvlxBeUcSgphGooCAoTsUa8EUriig6KD6W\nVjtVlsPIOFKL9Ymd6axpfYxTZ1k7jm3NtCit1Ed9Qa3FYtRx+lhIFKEGBCKNFQxEUFBRICS/+eMe\nzjk7TcLJzb3nJtnfz1qs+9t3n3vvb4X8cvY5Z999aGYQEf/0KnQCIlIYKn4RT6n4RTyl4hfxlIpf\nxFMqfhFPqfhFPNWp4ic5leQakrUk5+YqKRHJP2Y7yYdkEYC1AKYA2ABgGYDLzGxV7tITkXzp3YnX\nTgBQa2brAYDkowCmA2iz+Puwr/VDSSc+UkTasxM7sNt2Mcm2nSn+IQDejbU3ADihvRf0QwlO4ORO\nfKSItGepVSXetjPFnwjJWQBmAUA/DMj3x4lIQp054bcRwLBYe2jwnMPMKs2swswqitG3Ex8nIrnU\nmeJfBmAUyREk+wC4FMCi3KQlIvmW9bDfzPaQ/DqA5wEUAZhnZjU5y0xE8qpTx/xm9hyA53KUi4ik\nSDP8RDyl4hfxlIpfxFMqfhFPqfhFPKXiF/GUil/EUyp+EU+p+EU8peIX8ZSKX8RTKn4RT6n4RTyl\n4hfxlIpfxFMqfhFPqfhFPKXiF/GUil/EUyp+EU/l/aYd0jVtveqkMP74jB1O36qJD4XxxW+fFcY7\nL2hytrOdu8K4eYf7HtL1ac8v4ikVv4inVPwintIxf0/WqygMN33DvYHylVdF91qZPehtp685Fj92\nxOKosdJ9+wnVfxfGZRfVOn22Z08Hk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
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f5b5dfa2c10>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import h5py\n",
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "filename = '/usr/not-backed-up/1_convlstm/bouncing_mnist_train.h5'\n",
    "h5f = h5py.File(filename,'r')\n",
    "input_data = h5f['input'][:]\n",
    "h5f.close() \n",
    "print(input_data.shape)\n",
    "plt.figure()\n",
    "input_ = np.reshape(input_data[1,1,:,:],[64,64])\n",
    "plt.imshow(input_)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(10000, 20, 64, 64)\n"
     ]
    }
   ],
   "source": [
    "data_2 = np.load('/usr/not-backed-up/unsupervised-videos-master/bouncing_mnist_test.npy')\n",
    "print(data_2.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
